package com.project.homework4_9.bean;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class LogForm {
    private int id;
    private String content;
    private String time = DateTimeFormatter.ofPattern("HH:mm:ss").format(LocalDateTime.now());
    private LocalDate date =LocalDate.now();

    public LogForm(String content) {
        this.content = content;
    }

    public LogForm() {
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "LogForm{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", time='" + time + '\'' +
                ", date=" + date +
                "\n";
    }
}
